<?php

namespace App\Http\Controllers\Admin;

use App\Models\Message;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class MessageController extends Controller
{
    /**
     * 意见反馈
     * @return \Illuminate\Http\JsonResponse
     */
    public function data()
    {
        $data = Message::join('users','users.id','=','messages.user_id')->select('messages.*','users.name')->orderBy('id','desc')->paginate();
        return $this->success($data);
    }




}
